home *** CD-ROM | disk | FTP | other *** search
- Path: news.join.ad.jp!wnoc-tyo-news!spinnews!spin-hsd0-tky!inet-tsb!tis2!ssel-news!usenet
- From: Christian Sonntag <sonntag@ssel.toshiba.co.jp>
- Newsgroups: comp.lang.c++
- Subject: Question about STL/Hash
- Date: Mon, 18 Mar 1996 16:12:25 +1100
- Organization: Systems & Software Engineering Laboratory, TOSHIBA Corporation, JAPAN
- Message-ID: <314CF0B9.13F9@ssel.toshiba.co.jp>
- NNTP-Posting-Host: chrome.ssel.toshiba.co.jp
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
- Content-Disposition: inline; filename="hash.quest"
-
- I am trying to compile the hash implementation of STl by musser et.al. with VC++4.0,
-
- However, trying to do a simple thing like that:
-
-
- hash_map<int,int, hash_fun1 , equal_to<int> > hss;
-
-
-
- I get following error message(s):
-
- e:\msdev\stl\slist.h(159) : error C2512: 'pair<int,int>::pair<int,int>' : no appropriate default constructor available
- e:\msdev\stl\slist.h(226) : error C2512: 'pair<int,int>::pair<int,int>' : no appropriate default constructor available
- e:\msdev\stl\deque.h(305) : error C2065: 'bucket' : undeclared identifier
- e:\msdev\stl\deque.h(305) : error C2064: term does not evaluate to a function
-
-
- I included all the headers:
- #include "pair.h"
- #include "hashmap.h"
- #include "hashfun.h"
-
- And seem to find no expalnation for this abstract behaviour.
-
- Did anyone succesful mananage the compilation of hash1.c from the examples or some
- kind of hashed conatainer?
-
- TIA
- Christian
-
-
-